Site Kitで「The response is not a valid JSON response」のエラーが出た時の対策即席メモ
いきなりだけど、この投稿は、つぶやき程度の内容なので、あしからず。
今日バイトから帰宅し、WordPressの更新ついでに、今更ながら、Google謹製のSite Kitを導入したのです。
今までは、AdSenseやタグマネージャーをheader部分にベタ打ちしてたのだけど、アカウント連携で手間が省けるので、導入して次第です。
だがしかし、「The response is not a valid JSON response」という表示が出て、AdSense等のサービスと連携されない。
解決策を簡潔に書くと、さくらのレンタルサーバーの、WAF(Webアプリケーションファイアウォール)がオンになってる為に、無反応になってたというおちでした。
下記の画像が、解決策です。




つぶやき程度の内容でしたが、参考になれば幸いです♪
